# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-settings-daemon
pkgver=1.26.1
pkgrel=0
pkgdesc="MATE Settings daemon"
url="https://github.com/mate-desktop/mate-settings-daemon"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
depends="mate-common"
makedepends="
	dbus-glib-dev
	dconf-dev
	freeglut-dev
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	intltool
	libcanberra-dev
	libmatekbd-dev
	libmatemixer-dev
	libnotify-dev
	libsm-dev
	libtool
	libxklavier-dev
	mate-desktop-dev
	polkit-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-settings-daemon-$pkgver.tar.xz
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-polkit \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5073794620635d0dea10f89ade3a398f2fd75404fab04c2a81caf397b88ad6898742836dd56e55a33dd04853dcee5bf79e8cd9f0c2a41578e3671138d5b28748  mate-settings-daemon-1.26.1.tar.xz
"
